package day240429.superkeyword;

public class Animal {
    String name;
    String id;
    int age;
    public Animal() {
        System.out.println("父类中的空参构造器");
    }

    public Animal(String id) {
        System.out.println("父类中的空参构造器");
        this.id = id;
    }
    public Animal(String id ,String name) {
        this.id = id;
        this.name=name;
    }
    public Animal(String id ,String name,int age) {
        this.id = id;
        this.name=name;
        this.age=age;
}
}
